package com.hopu.service.Impl;

import com.hopu.mapper.MydeptMapper;
import com.hopu.pojo.Mydept;
import com.hopu.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private MydeptMapper mydeptMapper;

    @Override
    public List<Mydept> findAll(Integer pflag) {
        return mydeptMapper.findAll(pflag);
    }

    @Override
    public Integer falsedelete(Integer pid, Integer pflag) {
        return mydeptMapper.falsedelete(pid,pflag);
    }

    @Override
    public int updatePart(Mydept mydept) {
        return mydeptMapper.updatePart(mydept);
    }

    @Override
    public Integer insert(Mydept mydept) {
        return mydeptMapper.insert(mydept);
    }

    @Override
    public List<Mydept> findByname() {
        return mydeptMapper.findByname();
    }

    @Override
    public Mydept findById(Integer pid) {
        return mydeptMapper.findById(pid);
    }

}
